package com.ycz.mapper;

import com.ycz.commons.Result;
import com.ycz.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycz.form.BlogForm;
import com.ycz.query.BlogQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ycz
 * @since 2021-10-10
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {

    List<Blog> selectListByTitleByContentByDes(BlogQuery blogQuery);

    Integer selectCount(BlogQuery query);

    Blog selectArticleById(@Param("id") Integer id);

    Integer insertBlog(BlogForm blogForm);

    Integer updateById(BlogForm blogForm);
}
